package facade;

import abstractclass.IProcess;
import process.ControllerProcess;
import process.DaoProcess;
import process.MControllerProcess;
import process.MServiceProcess;
import process.ServiceImplProcess;
import process.ServiceProcess;

public class ProcessAssembly {
	
	private IProcess processDao;
	private IProcess processService;
	private IProcess processMService;
	private IProcess processServiceImpl;
	private IProcess processController;
	private IProcess processMController;
	
	public void processAll(String packgerOutPath, String beanName, String path, Object object){
		//生成类 后面做成单例
		processDao = new DaoProcess();
		processService = new ServiceProcess();
		processMService = new MServiceProcess();
		processServiceImpl = new ServiceImplProcess();
		processController = new ControllerProcess();
		processMController = new MControllerProcess();
		
		processDao.processJava(packgerOutPath, beanName, path, object);
		processService.processJava(packgerOutPath, beanName, path, object);
		processMService.processJava(packgerOutPath, beanName, path, object);
		processServiceImpl.processJava(packgerOutPath, beanName, path, object);
		processController.processJava(packgerOutPath, beanName, path, object);
		processMController.processJava(packgerOutPath, beanName, path, object);

		
	}

}
